<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.goodedeeds.webapp.controller.VendorAction" %>
<%--@elvariable id="actionBean" type="com.goodedeeds.webapp.controller.VendorAction"--%>
<%@ include file="/WEB-INF/jsp/include/taglibs.jsp"%>
<div style="text-align: center; font-size: 1.5em;">Edit Vendor</div>
<stripes:form action="<%=VendorAction.URL%>" method="post">
    <div>Vendor Key: <stripes:text name="vendor.vendorKey"/></div>
    <div>Vendor Id: <stripes:text name="vendorId"/></div>
    <div>Vendor Name: <stripes:text name="vendor.vendorName"/></div>
    <div>Vendor Description: <stripes:textarea name="vendor.vendorDescription"/></div>
    <div>Preview Text: <stripes:textarea name="vendor.previewHtml"/></div>
    <div>Vendor Status: ${actionBean.vendor.vendorCategoryIds}
        <stripes:select name="vendor.vendorStatus">
            <stripes:options-collection collection="${actionBean.vendorStatuses}" label="name" value="id"/>
        </stripes:select>
    </div>
    <div>
        Vendor Category:
        <stripes:select name="vendor.vendorCategoryIds" multiple="true">
            <stripes:options-collection collection="${actionBean.vendorCategories}" label="name" value="id"/>
        </stripes:select>
    </div>


    <stripes:submit name="save" value="Save"/>
</stripes:form>